/*
 * MusicJPanel.java
 *
 * Created on February 11, 2007, 6:31 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package com.bff.bjj.ui.component;

import com.bff.bjj.utils.Resources;
import java.awt.LayoutManager;
import javax.swing.Icon;
import javax.swing.JPanel;

/**
 *
 * @author bill
 */
public class BJJPanel extends JPanel {

    /** Creates a new instance of MusicJPanel */
    public BJJPanel() {
        super();
        setPanelColors();
    }

    public BJJPanel(LayoutManager layout) {
        super(layout);
        setPanelColors();
    }

    protected void setColors() {
        setPanelColors();
    }

    private void setPanelColors() {
        setBackground(ColorProperties.PANEL_BACKGROUND);
    }

    protected String getResource(Resources.LABEL_KEY key) {
        return Resources.getMessage(key);
    }
    
    protected Icon getIcon(Resources.ICON_KEY key) {
        return Resources.getIcon(key);
    }
}
